<template>
	<div id="tmp1">
		<h3>{{info.title}}</h3>
		<p class="line"></p>
		<p v-html='info.content'></p>
	</div>
</template>

<script>
import common from '../../kits/common.js'
import { Toast } from 'mint-ui';
	export default{
		data(){
			return{
				id:0,
				info:{}
			}
		},
		created(){
			this.id = this.$route.params.id;
			this.getinfo();
		},
		methods:{
			getinfo(){
				var url = common.apidomain + '/api/goods/getdesc/' + this.id;
				this.$http.get(url).then(function(res){
					if(res.body.status != 0){
						Toast(res.body.status.message);
					}
					this.info = res.body.message[0];
				})
			}
		}
	}
</script>

<style>
	h3{
		color:#0094ff;
		line-height: 30px;
		text-align: left;
	}
	.line{
		width:94%;
		margin:0 3%;
		border-bottom:1px solid #666;
		height:0;
	}
	img{
		width:100%;
	}
</style>